package com.imooc.course.config;

import com.imooc.dto.UserDTO;
import com.imooc.user.client.LoginFIlter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Auther: zhaozeyang
 * @Date: 2018/9/4 17:36
 * @Description:
 */
public class CourseFilter extends LoginFIlter {

    @Override
    protected void login(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, UserDTO userDTO) {
        httpServletRequest.setAttribute("user", userDTO);
    }
}
